package com.sheepone.util.beanconvert;

import com.sheepone.util.anno.Index;
import com.sheepone.util.anno.StartWith;

import java.util.Arrays;

/**
 * @author Miss.杨
 * @description
 * @since 2024/2/20 - 23:24
 */
public class DoubleResponse {

    @StartWith("main_steam")
    @Index(1)
    private Double[] main_steam;

    @Index(2)
    private Double pressure;

    public DoubleResponse(Double[] doubles, double v) {
        this.main_steam = doubles;
        this.pressure = v;
    }
    public DoubleResponse() {
    }

    @Override
    public String toString() {
        return "Response{" +
                "main_steam=" + Arrays.toString(main_steam) +
                ", pressure=" + pressure +
                '}';
    }

    public static DoubleResponse mock(){
        return new DoubleResponse(
                new Double[]{1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0},
                100.0
        );
    }
}
